package com.lglbc;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("order-service")
public interface OrderService {

    @PostMapping(path = "/order")
    boolean order(@RequestParam("userId") String userId,
                 @RequestParam("code") String code,
                 @RequestParam("count") int count);

}